package com.adgox.tiantianbiting.bean;

/**
 * Created by tang on 2018/12/25.
 */

import java.util.List;

/**
 * 分页加载用的bean
 * @param <T>
 */
public class PageBean<T>{
    private List<T> data;
    private int pageSize;
    private int startPage;
    private int totalResults;
    private int totalPages;

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getStartPage() {
        return startPage;
    }

    public void setStartPage(int startPage) {
        this.startPage = startPage;
    }

    public int getTotalResults() {
        return totalResults;
    }

    public void setTotalResults(int totalResults) {
        this.totalResults = totalResults;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "data=" + data +
                ", pageSize=" + pageSize +
                ", startPage=" + startPage +
                ", totalResults=" + totalResults +
                ", totalPages=" + totalPages +
                '}';
    }
}
